import request from '@/utils/request'

// 查询一级店铺流量来源数据日报列表
export function listBiShopFirstSource(query) {
  return request({
    url: '/marketing/BiShopFirstSource/list',
    method: 'get',
    params: query
  })
}

// 查询一级店铺流量来源数据日报详细
export function getBiShopFirstSource(id) {
  return request({
    url: '/marketing/BiShopFirstSource/' + id,
    method: 'get'
  })
}

// 新增一级店铺流量来源数据日报
export function addBiShopFirstSource(data) {
  return request({
    url: '/marketing/BiShopFirstSource',
    method: 'post',
    data: data
  })
}

// 修改一级店铺流量来源数据日报
export function updateBiShopFirstSource(data) {
  return request({
    url: '/marketing/BiShopFirstSource',
    method: 'put',
    data: data
  })
}

// 删除一级店铺流量来源数据日报
export function delBiShopFirstSource(id) {
  return request({
    url: '/marketing/BiShopFirstSource/' + id,
    method: 'delete'
  })
}
